<include file="../Public/header" />

<script data-main="__PUBLIC__/admin/js/page/admin/goods/itemsite" src="__PUBLIC__/admin/js/lib/requirejs/require.js"></script>

</head>

<body>
  <div class="page">
    <div class="page-hd">
      <h1>商品接口管理页面</h1>
    </div>
    <div class="datas">
      <div class="datas-bd">
        <table class="table">
          <thead>
            <tr>
              <th style="width: 10px">
                <input type="checkbox" class="toggle-all" />
              </th>
              <th style="">接口id</th>
              <th style="">接口名称</th>
              <th style="">网站链接	</th>
              <th style="">网站描述	</th>
              <th style="">是否启用</th>
              <th style="">操作</th>
            </tr>
          </thead>
          <tbody>
            <volist id="vo" name="data">
              <tr data-id="{$vo.id}">
                <td>
                  <input type="checkbox" class="toggle" />
                </td>
                <td>{$vo.id}</td>
                <td>{$vo.name}  </td>
                <td>{$vo.url}  </td>
                <td>{$vo.desc}  </td>
                <td>
                <php>if($vo['status'] == 1) {
                   echo "开启";
                }else{
                   echo "关闭";
                }</php>
                </td>
                <td>
                    <a href="{:URL('admin/Goods/addItemSite',array('id'=>$vo['id']))}">{$Think.lang.editor}</a> |
                    <a href="javascript:;" class="A_screen" onclick="deleteItemSite(1,'{$vo.id}')">{$Think.lang.delete}</a>
                </td>
              </tr>
            </volist>
          </tbody>
        </table>
      </div>
    </div>
    <div class="datas-ft">
      <div class="actions">
        <a href="{:URL('admin/Goods/addItemSite')}" class="btn">新增商品接口</a>
        <a href="#" class="btn" id="J_screen">{$Think.lang.batchdel}</a>
      </div>
    </div>
  </div>
  </div>
</body>

</html>
